package com.ti.shangou.dao;

import com.ti.shangou.pojo.entity.User;
import com.ti.shangou.pojo.query.UserQuery;
import com.ti.shangou.pojo.vo.RoleVO;
import com.ti.shangou.pojo.vo.UserVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {
    int deleteByPrimaryKey(Long userId);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Long userId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    UserVO selectUserByTelAndPwd(UserQuery userQuery);

    int insertUser(UserVO userVO);

    UserVO selectUserByPhone(String phone);

    List<UserVO> ajaxList(UserQuery userQuery);

    Integer ajaxListCount();

    Integer deleteUsers(@Param("users") List<UserVO> userVOS);
}